<template>
  <div class="wrapper">
    <img src="~@/assets/head.jpg" />
    <span class="content">
      {{ msg }}
    </span>
  </div>
</template>

<script>
export default {
  props: ["msg"],
};
</script>

<style scoped>
.wrapper {
  padding: 5px 10px;
  display: flex;
}
.content {
  margin-left: 10px;
  padding: 5px 10px;
  background: white;
  border-radius: 4px;
  background: rgba(152, 225, 101, 0.8);
  position: relative;
  font-size: 22px;
}
.content::before {
  position: absolute;
  left: -12px;
  top: 18px;
  content: "";
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid transparent;
  border-right: 6px solid rgba(255, 255, 255, 0.8);
}

img {
  width: 50px;
  height: 50px;
  border-radius: 4px;
  align-self: start;
  background: white;
  position: relative;
}
</style>